package com.sjb.mianshiya;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

@SpringBootApplication
@MapperScan("com.sjb.mianshiya.mapper")
@EnableSwagger2WebMvc
@Slf4j
@EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@ServletComponentScan
//@EnableElasticsearchRepositories(basePackages = "com.sjb.mianshiya.dao")
public class MianShiYaApplication {

    public static void main(String[] args) {
        SpringApplication.run(MianShiYaApplication.class, args);
    }

}
